package root.electronclass.electronclass.mvp.base;




import io.reactivex.disposables.CompositeDisposable;

public  class BaseModel implements BaseModelInterface {
    protected BaseSchedulerProvider schedulerProvider = SchedulerProvider.getInstance();
    protected CompositeDisposable   compositeDisposable;

    public void setSchedulerProvider( BaseSchedulerProvider schedulerProvider) {
        this.schedulerProvider = schedulerProvider;
    }


    @Override
    public void subscribe() {
        compositeDisposable = new CompositeDisposable();
    }

    @Override
    public void unsubscribe() {
        compositeDisposable.dispose();
    }



}
